
chrome.extension.onRequest.addListener(function(request, sender, sendResponse) {
 var videos = document.getElementsByTagName("video");
 if (request.action == "pauseVideo")
  for (var i = 0, video; video = videos[i]; i++)
	video.pause();
 else {
  //no action necessary here!
 }
 sendResponse({}); // Send nothing..
});
